package com.lizhi.yun.core.controller;/**
 * @program: hbsf_yun
 * @name TrainingPatientController
 * @description: 正在训练的患者信息
 * @author: lizhi
 * @create: 2021-10-29 10:27
 */

import com.lizhi.common.yun.entity.ListResponseResult;
import com.lizhi.yun.core.handler.TrainingPatientHandler;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *@program: hbsf_yun
 *@name TrainingPatientController
 *@description: 正在训练的患者信息
 *@author: lizhi
 *@create: 2021-10-29 10:27
 */
@RefreshScope
@RestController
@RequestMapping(path = "/api/sfrobot/yun/traingPatient")
public class TrainingPatientController {

    @Resource
    private TrainingPatientHandler trainingPatientHandler;

    @PostMapping(path = "/doMain")
    public ListResponseResult doMain(@RequestBody String json) {
        return trainingPatientHandler.doMain(json);
    }
}
